﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Security.Domain;

namespace Security.View.QuickViews.Reports
{
    [DisplayName("Имя входа")]
    internal class ServerLoginQuickReport
    {
        public ServerLoginQuickReport(ServerLogin login)
        {
            Login = login.Name;
            LoginEmployees = login.LoginEmployees.Select(l => new LoginEmployeeQuickReport(l)).ToArray();
        }

        [DisplayName("Имя входа")]
        public string Login { get; set; }
        [DisplayName("Сотрудники")]
        public ICollection<LoginEmployeeQuickReport> LoginEmployees { get; set; }
    }
}
